package com.health.mapp.service;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

/**
 * Servlet implementation class OssCallBack
 */
public class OssCallBack extends HttpServlet {
	private static final long serialVersionUID = 1L;
	 
	private static Logger logger = Logger.getLogger(OssCallBack.class);
    /**
     * @see HttpServlet#HttpServlet()
     */
    public OssCallBack() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String header=request.getParameter("header");
		String method= request.getParameter("method");
		String memberNo=request.getParameter("memberNo");
		String imgPaths=request.getParameter("imgPaths");
		String result =null;

		response.setContentType("text/html;charset=UTF-8");
		response.setCharacterEncoding("UTF-8");

		PrintWriter out = response.getWriter();
		out.println(result.toString());
		//out.println("\r\n");
		out.flush();
		out.close();
		
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}

}
